<?php
session_start();

if (!isset($_SESSION['user'])) {
    header("Location: http://localhost:8888/salesianichioggia.it/dashboard/login.php");
    die();
}

require ('../classes/HTMLManager.class.php');
?>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Dashboard :: salesianichioggia.it</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="shortcut icon" href="http://www.salesianichioggia.it/img/favicon.ico">
        <!-- Le styles -->
        <link href="../bootstrap/css/bootstrap.css" rel="stylesheet" />
        <style type="text/css">
            body {
                padding-top: 60px;
                padding-bottom: 40px;
                background: #f5f5f5 url('img/purty_wood.png') repeat;
            }
            .sidebar-nav {
                padding: 9px 0;
            }
            .table {
                background-color: #FFF;
                line-height: 100%;
            }
            tbody > tr > td:last-child {
                width: 15%;
            }
            tbody > tr > td:first-child {
                width: 7%;
            }
        </style>
        <link href="../bootstrap/css/bootstrap-responsive.css" rel="stylesheet" />

        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    </head>
    <body>
        <?= HTMLManager::get_dashboard_navigation(unserialize($_SESSION['user'])) ?>
        <div class="container-fluid">
            <div class="row-fluid">
                
                <?= HTMLManager::get_dashboard_activities(unserialize($_SESSION['user'])) ?>
                
                <div class="span9">
                    <div class="hero-unit">
                        <h1>Benvenuto</h1>
                        <p>nella dashboard di salesianichioggia.it</p>
                        <p>Da qui potrai accedere a tutte le funzionalità di modifica e aggiornamento del sito.<br />Per maggiori informazioni visita l'<em>Help</em> on line.</p>
                        <p><strong>Buona modifica!</strong></p>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
        <script src="../bootstrap/js/bootstrap.js"></script>
        <script src="../bootstrap/js/bootstrap-transition.js"></script>
    </body>
</html>
